                    <div class="row">
                    <?php
                    echo $this->config->item('makan', 'ion_auth');
                    ?> 
									  <?php
										// Output the profiles of each logged in service
										foreach ($providers as $provider => $d) :
											if (!empty($d['user_profile'])) :
												$profile[$provider] = (array)$d['user_profile'];
												?>
												<fieldset>
										        <legend><strong><?=$provider?></strong> Profile</legend>
										        <table width="100%">
										          <tr>
										            <td width="150" valign="top" align="center">
														<?php
															if( !empty($d['user_profile']->profileURL) ){
														?>
															<a href="<?php echo $d['user_profile']->profileURL; ?>"><img src="<?php echo $d['user_profile']->photoURL; ?>" title="<?php echo $d['user_profile']->displayName; ?>" border="0" style="height: 120px;"></a>
														<?php
															}
															else{
														?>
														<img src="public/avatar.png" title="<?php echo $d['user_profile']->displayName; ?>" border="0" >
														<?php
															}
														?>
													</td>
										            <td align="left"><table width="100%" cellspacing="0" cellpadding="3" border="0">
										                <tbody>
														<?php
														foreach ($d['user_profile'] as $key=>$value) :
															if ($value =="") {
																continue;
															}
														?>
										                  <tr>
										                  	<td class="pItem"><strong><?=$key?>:</strong> <?=(filter_var($value, FILTER_VALIDATE_URL) !== false) ?  '<a href="'.$value.'" target="_blank">'.$value.'</a>' : $value;?></td>
										                  </tr>										                 
														<?php endforeach; ?>
										                </tbody>
										              </table>
													  </td>
										          </tr>
										        </table>
										      </fieldset>
										<?php
											endif;
										endforeach;
										// echo $this->ion_auth->user()->row()->profile_picture;
										/*echo '<pre>';
										print_r($this->session->all_userdata());
										print_r($this->ion_auth->user()->row());
										echo '</pre>';*/



										/*foreach ($providers as $provider => $d) :
											if (!empty($d['user_profile'])) :
												echo '<img src="' . $d['user_profile']->photoURL. '"><br>';
												break;
											endif;
										endforeach;*/
										?>
                    </div>